package com.ykdl.member.kid.beans;

import java.io.Serializable;
import java.util.ArrayList;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.ykdl.member.kid.models.FileMetas;

import net.wxxr.http.interfaces.IJsonParser;

public class PmBean implements Serializable,IJsonParser{

	/**
	 * 
	 */
	private static final long serialVersionUID = 544972304878007626L;
	private int attachment_type ;
	private String content ;
	private String created_time ;
	private int dialogue_id ;
	private UserActorBean from_actor ;
	private int message_id ;
	private ArrayList<FileMetas> attachment_files ;
	private int actor_dialogue_id ;
	public int getActor_dialogue_id() {
		return actor_dialogue_id;
	}
	public void setActor_dialogue_id(int actor_dialogue_id) {
		this.actor_dialogue_id = actor_dialogue_id;
	}
	public ArrayList<FileMetas> getAttachment_files() {
		return attachment_files;
	}
	public void setAttachment_files(ArrayList<FileMetas> attachment_files) {
		this.attachment_files = attachment_files;
	}
	public int getAttachment_type() {
		return attachment_type;
	}
	public void setAttachment_type(int attachment_type) {
		this.attachment_type = attachment_type;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getCreated_time() {
		return created_time;
	}
	public void setCreated_time(String created_time) {
		this.created_time = created_time;
	}
	public int getDialogue_id() {
		return dialogue_id;
	}
	public void setDialogue_id(int dialogue_id) {
		this.dialogue_id = dialogue_id;
	}
	public UserActorBean getFrom_actor() {
		return from_actor;
	}
	public void setFrom_actor(UserActorBean from_actor) {
		this.from_actor = from_actor;
	}
	public int getMessage_id() {
		return message_id;
	}
	public void setMessage_id(int message_id) {
		this.message_id = message_id;
	}
	@Override
	public IJsonParser parse(String json) throws Exception {
		// TODO Auto-generated method stub
		Gson   gson = null;
		if(null != json){
			GsonBuilder b = new GsonBuilder();
			gson  = b.create();
			return gson.fromJson(json, PmBean.class);
		}
		return null;
	}

}
